// Settings.cpp : implementation file
//

#include "stdafx.h"
#include "SwordBible.h"
#include "SwordBibleDoc.h"
#include "Settings.h"
#include ".\settings.h"


// CSettings dialog

IMPLEMENT_DYNAMIC(CSettings, CDialog)
CSettings::CSettings(CWnd* pParent /*=NULL*/)
	: CDialog(CSettings::IDD, pParent)
	
{
	m_bShowTitle = CSwordBibleDoc::showTitle;
}

CSettings::~CSettings()
{
}

void CSettings::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	DDX_Check(pDX, IDC_CHECK_SHOWTITLE, m_bShowTitle);
}


BEGIN_MESSAGE_MAP(CSettings, CDialog)
	ON_BN_CLICKED(IDC_CHECK_SHOWTITLE, OnClickShowtitle)
END_MESSAGE_MAP()


// CSettings message handlers

void CSettings::OnClickShowtitle()
{
	UpdateData();

	// TODO: Add your control notification handler code here
	CSwordBibleDoc::showTitle = m_bShowTitle;





}
